package com.three.digit.group;

import com.three.digit.model.Point;

/**
 * It only has eight keys.
 * <ul>
 * <li>111
 * <li>112
 * <li>121
 * <li>122
 * <li>211
 * <li>212
 * <li>221
 * <li>222
 * </ul>
 */
public class OddEvenNumbersGroup extends BasicGroup
{

    public OddEvenNumbersGroup (boolean useBasicData)
    {
        super (useBasicData);
    }

    @Override
    public String[] hashKey (Point point)
    {
        String key = point.getX () % 2 + "" + point.getY () % 2 + "" + point.getZ () % 2;
        
        return new String[]
        { key };
    }

}
